package com.bw.cart.server.controller;

import com.bw.cart.server.service.CommentService;
import com.bw.common.core.domain.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RestController
@RequestMapping("/comment")
public class CommentController {

    @Autowired
    private CommentService commentService;


    @GetMapping("/selectPmsPosts")
    public Result selectPmsPosts(){
        return Result.success(commentService.selectPostsInfo());
    }


}
